import { Node } from "@tiptap/core";

export const Paragraph = Node.create({
  name: "paragraph",
  group: "block",
  content: "inline*",

  parseHTML() { 
    return [
      {
        tag: "p", // HTML标签
      }
    ]
  },

  renderHTML({ HTMLAttributes}) { 
    return ["p", HTMLAttributes, 0] // 返回HTML结构
  }
})